﻿using System;

namespace YWM.Entities
{
    [Serializable]
    public abstract class CEntity : CEntityOfTKey<long>, IEntity, ICreationAudited
    {
        public override long Id { get; set; }
    }

    [Serializable]
    public abstract class CEntityOfTKey<TKey> : EntityOfTKey<TKey>, 
        ICreationAudited<TKey>
    {
        public virtual TKey CreatorUserId { get; set; }

        public virtual DateTime CreationTime { get; set; }
    }
}
